package org.metasketch.logger;

public class Log {

	static ISimpleLogger logger;

	public static void println(String line) {
		System.out.println(line);
		logger.println(line);
	}

	public static void printlnError(String line) {
		System.err.println(line);
		logger.printlnError(line);
	}

	public static void print(String line) {
		System.out.print(line);
		logger.print(line);
	}

	public static void printError(String line) {
		System.err.print(line);
		logger.printError(line);
	}

	public static ISimpleLogger getLogger() {
		return logger;
	}

	public static void setLogger(ISimpleLogger logger) {
		Log.logger = logger;
	}

}
